import * as mongoose from 'mongoose';
import { UserSchema } from '../schema/user';
const tbName = 'students';

interface User {
  name: string,
  age: number,
  headPortrait: string,
  city: string,
  sex: string
}

const UserModel = mongoose.model(tbName, UserSchema)

export { tbName, User, UserModel };